package com.jy.api.dao;

import com.jy.api.domain.AppraiseNet;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by xiaohua on 2018/11/10.
 */
public interface AppraiseNetDao extends CrudRepository<AppraiseNet, Integer> {

    Page<AppraiseNet> findByStoreIdOrderByAppraiseTimeDesc(String storeId, Pageable pageable);

    Page<AppraiseNet> findByStoreIdAndAppraiseTimeBetweenOrderByAppraiseTimeDesc(String storeId, Date begin,Date end,Pageable pageable);


}
